<template>
    <div class="page-title mouse-active" @click="back">
        <el-image :src="require('@/assets/img/application/icon-left.png')"></el-image>
        <span class="title" :data-font="$i18n.locale">{{ title }}</span>
    </div>
</template>

<script>
export default {
    props: ["title"],
    methods: {
        back() {
            this.$emit("back")
        }
    }
}
</script>


<style lang="less" scoped>
.page-title {
    display: flex;
    align-items: center;
    padding: 0.64rem 0;

    .el-image {
        width: 1.28rem;
        height: 1.28rem;
        margin-right: 0.43rem;
        margin-left: 1.49rem;
    }

    .title {
        font-size: 1.17rem;
        font-weight: bold;
        color: #212121;
        line-height: 1.92rem;
    }

    .title[data-font='zh'] {
        font-family: 'AlibabaPuHuiTi-Bold', 'AlibabaPuHuiTi';
    }

    .title[data-font='en'] {
        font-family: 'RNSSanzSC-Bold, RNSSanzSC';
    }

}
</style>